@charset "UTF-8";

#newProductPage {
  padding-bottom: 20px;

  & .new-data {
    padding: 10px 15px 20px 15px;
    font-size: $fontSize - 2;

    & .data-block {
      padding: 9px 10px;
      background-color: #f4f7fd;
      width: 220px;
      box-sizing: border-box;
      margin-right: 10px;
    }
  }

  & .calendar-container{
    padding: 20px 15px;
    font-size: $fontSize - 2;
    & .calendar-card{
      display: inline-block;
      width: 200px;
      border-top: 2px solid $fontColor2;
      cursor: pointer;
      padding: 0 10px;
      margin-right: 10px;
      margin-bottom: 10px;
      vertical-align: top;
      height: 130px;
      &:hover,&.active{
        border-top-color: $themeColor100;
        background-color: $themeColor5;
        color: $fontColor1;
      }
      & .calendar-card-head{
        height: 32px;
        @include displayFlex(flex,space-between,center);
        & .calendar-card-title{
          color: $fontColor1;
          font-weight: bold;
        }
      }
      & .calendar-card-content{
        line-height: 32px;
        @include textOverflow;
      }
    }
  }

  & .newgoods-list{
    & .newgoods-list-head{
      @include displayFlex(flex,space-between,center);
      color: $fontColor1;
      & .newgoods-list-arrow{
        cursor: pointer;
        display: inline-block;
        padding: 0 3px;
        &.disabled{
          color: $fontColor2;
          cursor: not-allowed;
        }
      }
    }
    & .newgoods-list-goods-container{
      margin-top: 15px;
      & .newgoods-list-goods-content{
        @include displayFlex(flex,null,center);
        padding: 5px 0;
        border-bottom: 1px solid $themeColor5;
        &:last-child{
          border: none;
        }
        & .newgoods-list-goods-img{
          width:45px;
          height: 45px;
        }
        & .newgoods-list-goods-info{
          flex-grow: 1;
          height: 45px;
          margin-left: 5px;
          @include displayFlex(flex,space-between,null);
          flex-direction: column;
          & .newgoods-list-goods-title{
            color: $fontColor1;
            max-width: 340px; 
            @include textOverflow;
          }
        }
      }
    }
  }

  & .choose {
    padding: 10px 15px;

    & .common {
      width: 460px;

      & .search-result {
        position: absolute;
        width: 100%;
        left: 0;
        top: 32px;
        height: 245px;
        overflow-y: auto;
        border-radius: 5px;
        background-color: $clf;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.078);
        line-height: normal;
        padding: 5px 0;
        z-index: 9;

        & .list {
          margin-top: 5px;

          & .result-content {
            line-height: 32px;
            text-align: left;
            color: $fontColor1;
            padding: 5px 15px;
            cursor: pointer;

            &:hover {
              background-color: $themeColor5;
            }

            & .result-title {
              display: inline-block;
              width: 90%;
              vertical-align: middle;
              @include textOverflow;
            }
          }
        }

        & .no-result {
          font-size: $fontSize - 2;
          color: $fontColor1;
          text-align: center;
          margin: 100px 0;
        }
      }
    }
  }

  & .goods-list {
    padding: 10px 15px;

    & .data-block {
      display: inline-block;
      padding: 9px 10px;
      background-color: #f4f7fd;
      width: 120px;
      box-sizing: border-box;
      margin-left: 5px;
      text-align: right;

      & .font {
        font-size: $fontSize + 2;
        color: $fontColor1;
        & .small{
          font-size: $fontSize - 2;
        }
      }
    }

    & .goods {
      @include displayFlex(flex, null, center);

      & .goods-image {
        display: inline-block;
        width: 63px;
        height: 63px;
        position: relative;

        & .goods-logo {
          position: absolute;
          top: 0;
          left: 0;
          color: $clf;
          width: 20px;
          text-align: center;
          line-height: 20px;
          font-size: $fontSize - 2;
          z-index: 3;

          &.prev {
            background-color: rgba(23, 84, 210, 0.7);
          }

          &.group {
            background-color: rgba(255, 153, 0, 0.7);
          }
        }
      }

      & .title {
        @include displayFlex(flex, space-between, null);
        flex-direction: column;
        height: 63px;
        margin-left: 10px;
        max-width: 430px;
        & .gname{
          @include twoColtextOverflow;
        }
      }
    }
  }

  & .page {
    padding: 10px 15px;
    text-align: right;
  }

  & .no-data {
    text-align: center;
    color: $fontColor1;
    font-size: $fontSize - 2;
    padding: 175px 0;
  }
}
